function Images = dirimgs(img_path, bJustNames)

if nargin < 2
    bJustNames = false;
end

Images = [
    dir(fullfile(img_path, '*.jpg'))
    dir(fullfile(img_path, '*.bmp'))
    dir(fullfile(img_path, '*.png'))
    ];

if bJustNames
    Images = {Images(:).name}';
end
